#include "StdAfx.h"
#include "CLock.h"

CLock::CLock(CRITICAL_SECTION* pSection)
{
	m_pSection = pSection;
	EnterCriticalSection(m_pSection);
}

CLock::~CLock()
{
	LeaveCriticalSection(m_pSection);
}